package com.example.springbootdemo.service.serviceImp;

import com.example.springbootdemo.entity.GongAnData;
import com.example.springbootdemo.mapper.GonanMapper;
import com.example.springbootdemo.service.GonGanService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @ClassName: GonGanServiceImp
 * @Description:
 * @Author: TXW
 * @Date: 2023-07-11
 */

@Service
public class GonGanServiceImp implements GonGanService {

    @Resource
    public GonanMapper gonanMapper;

    @Override
    public void insertIntoGonAn(GongAnData obj) {
        gonanMapper.insertData(obj);
    }

    @Override
    public List<Map<String,String>> selectStudent() {
        return gonanMapper.selectStudent();
    }
}
